<h1>Listing images</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Description</th>
    <th>Created at</th>
    <th>Updated at</th>
  </tr>
  
<% for image in @images %>
  <tr>
    <td><%=h image.title %></td>
    <td><%=h image.description %></td>
    <td><%=h image.created_at %></td>
    <td><%=h image.updated_at %></td>
    <td><%= link_to 'Show', image_path(image) %></td>
    <td><%= link_to 'Edit', edit_image_path(image) %></td>
    <td><%= link_to 'Destroy', image_path(image), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New image', new_image_path %>